package com.woniuxy.yygh.user.client;

import com.woniuxy.yygh.vo.hosp.ScheduleOrderVo;
import com.woniuxy.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: interface
 * <P> TODO: 远程调用hosp 医院hospapi的 预约下单数据
 * <P> Date: 2022/3/2:11:07
 * <P> Description:
 */
@FeignClient("service-hosp")
@Repository
public interface HospitalFeignClient {

    /**
     * TODO:根据排班id获取预约下单数据
     **/
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    public ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * TODO:根据医院编号获取医院签名信息
     **/
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    public SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);


}
